package com.dapeis.api.controller.collocation;

import org.bouncycastle.cert.ocsp.Req;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.google.gson.JsonElement;

public interface IShopController {

    /**
     * 发布服务
     * 
     * @param type
     * @param price
     * @param content
     * @return
     */
    @RequestMapping(value = "/add", method = RequestMethod.POST)
    public @ResponseBody JsonElement add(@RequestParam Integer id,@RequestParam Integer type,
	    @RequestParam String price, @RequestParam String content);

    /**
     * 获取单个服务
     * 
     * @param id
     * @return
     */
    @RequestMapping(value = "/getSingle", method = RequestMethod.GET)
    public @ResponseBody JsonElement getSingleShop(@RequestParam Integer id,
	    @RequestParam Integer type);

    /**
     * 获取我的服务列表
     * 
     * @return
     */
    @RequestMapping(value = "/getMyShop", method = RequestMethod.GET)
    public @ResponseBody JsonElement getMyShop();

}
